package cn.edu.fzu.delivery.service.impl;

import cn.edu.fzu.delivery.domain.entity.Area;
import cn.edu.fzu.delivery.mapper.AreaMapper;
import cn.edu.fzu.delivery.service.AreaService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yifan
 * @date 2022/11/6
 */
@Service
public class AreaServiceImpl implements AreaService {

    @Resource
    private AreaMapper areaMapper;

    @Override
    public List<Area> list(Long cityId) {
        return areaMapper.list(cityId);
    }
}
